/**
 * 
 */
package com.sandberg.shopper.core;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;

import com.sandberg.shopper.R;

/**
 * @author Jesper
 *
 */
public class HelpScreen {
	public static AlertDialog createHelpScreen(Activity activity, int textId) {
		AlertDialog.Builder builder = new AlertDialog.Builder(activity);
		builder.setMessage(textId);
		builder.setCancelable(false);
		builder.setPositiveButton(activity.getResources().getString(R.string.help_button), new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int id) {
					dialog.cancel();
					}
				});
		return builder.create();
	}

	public static AlertDialog createHelpScreen(Activity activity, String text) {
		AlertDialog.Builder builder = new AlertDialog.Builder(activity);
		builder.setMessage(text);
		builder.setCancelable(false);
		builder.setPositiveButton(activity.getResources().getString(R.string.help_button), new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int id) {
					dialog.cancel();
					}
				});
		return builder.create();
	}
}
